package com.xuecheng.manage_cms.dao;

import com.xuecheng.framework.domain.cms.CmsPage;
import org.springframework.data.mongodb.repository.MongoRepository;
import org.springframework.stereotype.Repository;

/**
 * @author zhaoxiang
 * @version 1.0
 * @Date 2019/8/24 17:28
 */
@Repository
public interface CmsPageRepository extends MongoRepository<CmsPage,String> {
    //根据名称查询
    CmsPage findByPageName(String pageName);
    //根据页面名称、站点id、页面webPath的查询
    CmsPage findByPageNameAndSiteIdAndPageWebPath(String pageName, String siteId, String pageWebPath);
    //根据id查询页面信息
    CmsPage findByPageId(String pageId);
}
